package org.openstock.impl.def.core.ui.swing.widget;

import java.awt.event.KeyEvent;

import org.openstock.design.Registerable;
import org.openstock.impl.def.core.factory.Factory;
import org.openstock.impl.def.core.ui.swing.wrapper.JMenu;
import org.openstock.resources.i18n.MessageSource;

public class NewMenu extends JMenu implements Registerable  {
	private static final long serialVersionUID = 3045986340866209410L;

	@Override
	public void register() {
		Factory.getSingleton(FileMenu.class).add(this);
	}
	
	public NewMenu() {
		super(MessageSource.getMessage("New"),KeyEvent.VK_N,"new.png");
	}
	
}
